package com.ruoyi.tzzl.service.imp;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.tzzl.domain.WzPayOrderRecord;
import com.ruoyi.tzzl.mapper.WzPayOrderRecordMapper;
import com.ruoyi.tzzl.service.IWzPayOrderRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author by caoyong
 * @date 2022/12/19
 **/
@Service
public class WzPayOrderRecordServiceImpl extends ServiceImpl<WzPayOrderRecordMapper, WzPayOrderRecord> implements IWzPayOrderRecordService {

    @Autowired
    private WzPayOrderRecordMapper wzPayOrderRecordMapper;


    /**
     * 根据付呗订单号查询支付订单
     *
     * @param orderSn
     */
    @Override
    public WzPayOrderRecord getByOrderSn(String orderSn) {
        LambdaQueryWrapper<WzPayOrderRecord> lqw =new LambdaQueryWrapper<>();
        lqw.eq(WzPayOrderRecord::getOrderSn,orderSn);
        return this.getOne(lqw);
    }
}
